
DIR=`(cd $1; pwd)`
OUTPUT="voroh.out"
#echo $DIR
OUTDIR="./out"

for SOURCE in `find $DIR -type f -name "*.java" | grep -v "\.svn" | grep -v "\/test\/" | grep -v "block"`; do
echo $SOURCE

SOURCE_REL=${SOURCE#$DIR/}

DEST=$OUTDIR/${SOURCE_REL}.blame
mkdir -p `dirname $DEST`

echo $SOURCE
svn blame $SOURCE > $DEST

done
